package com.zzy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzy.model.User;

import org.apache.ibatis.annotations.Param;

import java.util.List;

//@Mapper
public interface UserDao {
    public List<User> findAll();
    public Integer saveUser(@Param("user") User user);
    public Integer update(@Param("user") User user);
    public User findOne(String id);
    /**根据多查询条件获取 单个 */
    public User findModelByParam(@Param("user") User user);
    public List<User> findList(@Param("user") User user);
    public Integer deletes(String id);
    public List<User> findByName(String name);
    public List<User> findByPage(@Param("user") User user,int pageCount,int pageSize);


}
